#ifndef SYNC_CHECK_H
#define SYNC_CHECK_H

#include "http_get.h"

class Sync_Check : public Http_Get
{
	Q_OBJECT
public:
	Sync_Check(Http_Get *parent = 0);
	~Sync_Check();

	void getV2(QString uin, QString sid, QString skey,
			   QString deviceId, QStringList syncKey);

Q_SIGNALS:
    void error();
	void msg_state(bool has_newmsg);

protected:
	void finished(QNetworkReply* reply);

private:
	void m_get(QString host, QString uin, QString sid,
			   QString skey, QString deviceId, QStringList syncKey);

private:
    int m_errout;
};

#endif // SYNC_CHECK_H
